//
//  YQMYCommonDefine.h
//  MuYing
//
//  Created by tbb on 2019/7/18.
//  Copyright © 2019 TBB. All rights reserved.
//

#ifndef YQMYCommonDefine_h
#define YQMYCommonDefine_h

#define kAPPThemeColor HexColor(0xFA969D)//app主颜色
//#define kAPPThemeColor HexColor(0x79C4C7)//app主颜色
#define kAPPRedThemeColor HexColor(0xFA969D)//0xFA969D

#define kAPPMainTitleColor HexColor(0x414141)//一级标题颜色
#define kAPPSubTitleColor HexColor(0x686868)
#define kAPPThreeTitleColor HexColor(0xCBCBCB)

#define kAPPTABLEVIEW_BG_COLOR HexColor(0xFAFAFA)

#define kAPPLineViewColor HexColor(0xE6E6E6)

#define BoundWithSize(str,width,font)   ([str boundingRectWithSize:CGSizeMake(width, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:font]} context:nil])

#define kHexString(hex) [UIColor colorWithHexString:hex]
/* 平方-中号 */
#define kFont_Medium(font)  [UIFont fontWithName:@"PingFangSC-Medium" size:font]
/* 平方-粗体 */
#define kFont_Bold(font)  [UIFont fontWithName:@"PingFangSC-Semibold" size:font]
#define kFont_Regular(font)  [UIFont fontWithName:@"PingFangSC-Regular" size:font]
#define kFont_Heavy(font)  [UIFont fontWithName:@"PingFangSC-Semibold" size:font]

//机型适配

#define kMUAPPSCALEW (kScreenWidth / 375.0)
#define kMUAPPSCALEH (kScreenHeight / 667.0)
#define kMUAPPWIDTHSCALE(w) (w * kMUAPPSCALEW)
#define kMUAPPHEIGHTSCALE(h) (h * kMUAPPSCALEH)
//机型适配 end
#define kNEWS_PARENTING_LIST_IMAGE_H floor(((kYQPScreenWidth - 54) / 3.0))
#define kNEWS_PARENTING_LIST_H (kNEWS_PARENTING_LIST_IMAGE_H + 84)

#endif /* YQMYCommonDefine_h */
